﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Castle.ActiveRecord;
namespace CastleDemo1.Model
{
    [ActiveRecord("Comments")]
    public class Comment:ActiveRecordBase<Comment>
    {
        #region Mapping Property
        [PrimaryKey(PrimaryKeyType.GuidComb)]
        public Guid CommentId { get; set; }
        [BelongsTo("PostId")]
        public Post Post { get; set; }
        [Property]
        public Guid ParentCommnetId { get; set; }
        [Property]
        public string Author { get; set; }
        [Property]
        public string CommentContent { get; set; }
        [Property]
        public DateTime PublishDate { get; set; }
        #endregion
    }
}